package com.wangshouyu.mp.pay.scene;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

import java.util.Objects;

/**
 * @author 王守钰
 * @description H5Wap场景信息
 * @date 2020/8/13 9:18
 */
public class H5WapSceneInfo extends H5SceneInfo {

    /**
     * WAP网站URL地
     */
    @SerializedName(value = "wap_url")
    @JsonProperty(value = "wap_url")
    @JSONField(name = "wap_url")
    private String wapUrl;

    /**
     * WAP 网站名
     */
    @SerializedName(value = "wap_name")
    @JsonProperty(value = "wap_name")
    @JSONField(name = "wap_name")
    private String wapName;

    public String getWapUrl() {
        return wapUrl;
    }

    public void setWapUrl(String wapUrl) {
        this.wapUrl = wapUrl;
    }

    public String getWapName() {
        return wapName;
    }

    public void setWapName(String wapName) {
        this.wapName = wapName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        H5WapSceneInfo that = (H5WapSceneInfo) o;
        return Objects.equals(wapUrl, that.wapUrl) &&
                Objects.equals(wapName, that.wapName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(wapUrl, wapName);
    }

    @Override
    public String toString() {
        return "H5WapSceneInfo{" +
                "wapUrl='" + wapUrl + '\'' +
                ", wapName='" + wapName + '\'' +
                '}';
    }
}
